<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>跟进</title>
	<link rel="stylesheet" type="text/css" href="__CSS__/api.css" />
	<link rel="stylesheet" type="text/css" href="__CSS__/aui.css" />
	<link rel="stylesheet" href="__FILE__/css/upload.css">
	<style>
		#header {
			position: fixed;
			top: 0;
			left: 0;
		}

		.topkong {
			height: 2rem;
		}
		/*body*/

		body {
			padding-top: 56px;
		}

		.tit {
			padding: 0.75rem 0.8rem;
			align-items: center;
			font-size: 14px;
			font-weight: 500;
			color: #000000;
		}
		.aui-iconfont-tu{
			min-height: 2.8rem;
			width: 2.2rem;
			background: url(__IMG__/back.png) no-repeat center center;
			background-size: 44px 44px;
		}
		.xian {
			width: 3px;
			height: 14px;
			background: #62C3D0;
			margin-right: 0.35rem;
		}

		.box {
			background-color: #fff;
			padding-left: 0.8rem;
		}

		.one {
			height: 3.2rem;
			align-items: center;
			font-size: 14px;
			font-weight: 400;
			color: #242424;
		}
		.one textarea{
			height: 100px;width: 100%;padding: 1px 5px;background-color: #fff;border: 1px solid #DBCFDB;
		}
		input[type="text"] {
			border: none;
			width: 100%;
			padding: 0 0.75rem;
			line-height: normal;
			font-size: 0.8rem;
			border-radius: 0;
			background-color: transparent;
			margin: 0 auto;
			color: #A6A6A6;
			text-align: right;
		}

		::-webkit-input-placeholder {
			color: #A6A6A6;
		}

		.addr {
			align-items: center;
			font-size: 14px;
			font-weight: 400;
			color: #242424;
			padding-left: 0.75rem;
			margin-top: 0.8rem;
		}

		.local {
			width: 0.7rem;
			height: 0.9rem;
			margin-right: 0.3rem;
		}

		.button {
			padding: 1.5rem 2.45rem;
		}

		.btn {
			text-align: center;
			line-height: 1.8rem;
			height: 1.8rem;
			background: #62C3D0;
			border-radius: 0.9rem;
			font-size: 16px;
			font-weight: 500;
			color: #FFFFFF;
		}
		.red{
			color: #F24860;
		}
	</style>
	<style>
		/*html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu{margin:0;padding:0;}*/

		/*body{font-size: 14px;}*/
		/*h1{font-size: 26px;}*/
		/*p{font-size: 14px; margin-top: 10px;}*/
		/*pre{background:#eee;border:1px solid #ddd;border-left:4px solid #f60;padding:15px;margin-top: 15px;}*/
		/*h2{font-size: 20px;margin-top: 20px;}*/
		.case{
			z-index: 99999;
		}
		/*td{padding:5px;}*/
		.delete{
			position: absolute;
			top:0;
			right:0;
			/*margin-top: -15px;*/
			color: #000;
			z-index: 99999;
			width: 20px;!important;
		}
	</style>
</head>
<body id="body">
<header class="aui-bar aui-bar-nav underLine" id="header">
	<a class="aui-pull-left" tapmode="active" onclick="history.go(-1);"> <span class="aui-iconfont aui-iconfont-tu"> </span> </a>
	<div class="aui-title">更新报备</div>
</header>
<form id="updateshop">
<div class="tit flex-wrap">
	<span class="xian"></span>
	<div>跟进记录</div>
</div>
<div class="box">
	<div class="one flex-wrap underLine">
		<div><span class="red">*</span>联系人</div>
		<input type="text" name="s_name" class="flex-con" placeholder="请输入名称" >
	</div>
	<div class="one flex-wrap underLine">
		<div><span class="red">*</span>联系电话</div>
		<input type="text" name="s_phone" class="flex-con" placeholder="请输入电话" >
	</div>
	<div class="one flex-wrap underLine">
		<div>微信号</div>
		<input type="text" name="s_wx_name" class="flex-con" placeholder="请输入微信号" >
	</div>
	<div class="one flex-wrap underLine">
		<div><span class="red">*</span>沟通要点</div>
	</div>
	<div class="one flex-wrap underLine" style="margin-right: 20px;">
		<textarea name="s_content" class="flex-con" placeholder="沟通要点不得少于50字"></textarea>
	</div>
	<br/>
	<div class="one flex-wrap underLine">
		<div>备注信息</div>
	</div>
	<div class="one flex-wrap underLine" style="margin-right: 20px;">
		<textarea name="s_remark" class="flex-con" placeholder="备注信息不得少于50字"></textarea>
	</div>
</div>
<br/>
<div class="tit flex-wrap">
	<span class="xian"></span>
	<div>上传聊天截图</div>
</div>
<!---->
<div style="width: 100%;height: 1px;clear: both">&nbsp;</div>
<div class="case">
	<div class="upload" action="/index/Upload/uploadImgBendi" id="case1"></div>
</div>
<input type="hidden" name="sid" value="{$sid}" />
</form>
<div class="button">
	<div class="btn">保存记录</div>
</div>
</body>
{include file="public/footer" /}
<script src="__FILE__/js/jQuery.upload.min.js"></script>
<script type="text/javascript">
    /**
     * 图片上传
     */
    $(function(){
        $("#case1").upload();
    })
	$('.btn').click(function () {
        $.ajax({
            url: '/index/My/updateAjax',
            data: $('#updateshop').serialize(),
            type: 'POST',
            dataType: 'JSON',
            success: function (returnData) {
                if(returnData.status == 200){
                    history.go(-1);
                }else{
                    layer.open({
                        content: returnData.msg
                        ,skin: 'msg'
                        ,time: 2 //2秒后自动关闭
                    });
                }
            },
            error: function () {
                alert('服务器错误，请刷新重试！');
            }
        })
    });
</script>

</html>
